package indi.jp.project.core.service;

import indi.jp.project.core.entity.Dictionary;
import indi.jp.project.core.entity.DictionaryGroup;
import indi.jp.project.core.entity.JsonResult;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface DictionaryService {

    List<DictionaryGroup> queryGroupList(DictionaryGroup entity) throws SQLException;

    int saveGroup(DictionaryGroup entity) throws SQLException;

    int deleteGroupById(String id) throws SQLException;

    Map<String, Object> queryGrid(Dictionary entity) throws SQLException;

    int save(Dictionary entity) throws SQLException;

    int deleteById(String id) throws SQLException;

    JsonResult queryByGroups(Map<String, Object> map) throws SQLException;

}
